package com.ygq.service.Impl;

import com.ygq.mapper.PersonsMapper;
import com.ygq.pojo.Persons;
import com.ygq.service.PersonsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonsServiceImpl implements PersonsService {
    @Autowired
    private PersonsMapper personsMapper;

    @Override
    public List<Persons> findPersons() {
        return personsMapper.findPersons();
    }
}
